<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>老师端实习报告详情页</title>
		<script src="../../script/mui.min.js"></script>
		<link href="../../css/weui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css">
		<!--<link rel="stylesheet" href="../../css/CFNetPP_Base.css">-->
		<link rel="stylesheet" type="text/css" href="../../css/base.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/attachmentCss.css">
		<script type="text/javascript" src="../../script/echarts.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar" style="position: fixed;left: 0px;top: 20px;">
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="page">实习报告</span>
			<a class="base_right_item base_hide_item"> </a>
		</div>
	</body>
	<div class="base_content_div">
		<div class="bgwhite padding10">
			<div id="segmentedControl" class="mui-segmented-control">
				<a class="mui-control-item mui-active" href="#item1"> 学生自评 </a>
				<a class="mui-control-item" href="#item3"> 企业评分 </a>
				<!--<a class="mui-control-item" href="#item3"> 老师评分 </a>-->
			</div>
		</div>
		<div id="item1" class="mui-control-content mui-active top_10 bottom_30">
			<div class="feeling">
				<p class="title" style="margin-top: 15px" >
					结业感想
				</p>
				<div class="feeling-text">
					<p id="jygxtext" style=" word-break: break-all"></p>
				</div>
			</div>
			<div class="text_feel top_10 " hidden="hidden"  id="attachment_div">
				<div style="padding: 10px 20px;">
					<p class="title "style="margin-bottom:0;">
						附件
					</p>
					<div class="feeling-text top_5 left_15" hidden="hidden" id="nullImg">
						<p>
							无
						</p>
					</div>
				</div>
				<div id="attachmentTableView" class="weui_cells fileDownLoad_Div">
					<!--<div class="weui_cell attachment_cell" progress_id="" >
					<div class="weui_cell_bd weui_cell_primary">
					<div class="materials_title ">xxxx.txt</div>
					<div class="materials_content">
					<div class="materials_download">
					<div class="materials_size">
					<span>1.2mb</span>
					</div>
					<div id="prodiv" class="materials_progress">
					<div class="container">
					<div class="weui_progress">
					<div class="weui_progress_bar">
					<div class="weui_progress_inner_bar" id="" style="width: 0;">
					</div>
					</div>
					</div>
					</div>
					</div>
					</div>
					</div>
					</div>
					</div>-->
				</div>
				<div class="blank"></div>
			</div>
			<div class="myScore" id="dgsxm" hidden="hidden">
				<p class="title">
					给企业师傅的评分
				</p>
				<div class="myScore-starscore clearfix">
					<div class="letter left">
						工作技能指导：
					</div>
					<div class="star left" id="taiduNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						业务能力：
					</div>
					<div class="star left" id="chuqinNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						心理辅导：
					</div>
					<div class="star left" id="workendNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						职业素养培养：
					</div>
					<div class="star left" id="jinengNum">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
			<div class="yesorno">
				<p class="title">
					是否愿意就业到当前实习单位？
				</p>
				<div class="mui-input-row mui-radio yesorno-radio">
					<input  id ='rd1'name="radio1" type="radio"  value='1' >
					<label>是</label>
				</div>
				<div class="mui-input-row mui-radio yesorno-radio" >
					<input id ='rd0' name="radio1" type="radio" value='0'>
					<label>否</label>
				</div>
			</div>
		</div>
		<div id="item3" class="mui-control-content top_10 bottom_30">
			<div class="feeling">
				<p class="title">
					企业评语
				</p>
				<div class="feeling-text">
					<p id="qypytext"></p>
				</div>
			</div>
			<div class="myScore">
				<p class="title">
					企业评分
				</p>
				<div class="myScore-starscore clearfix top_15">
					<div class="letter left">
						实习态度：
					</div>
					<div class="star left" id="taiduNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						出勤率：
					</div>
					<div class="star left" id="chuqinNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						工作完成度：
					</div>
					<div class="star left" id="gzwcdNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
				<div class="myScore-starscore clearfix top">
					<div class="letter left">
						技能掌握度：
					</div>
					<div class="star left" id="jnzwdNum2">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png">
						<img src="../../image/icon_xingxing01.png" hidden="hidden">
					</div>
				</div>
			</div>
		</div >
		<a  id="bt_pf" hidden="hidden" href="javascript:;" class="buttonBtn" >我要评分</a>
	</div>
	</body> <script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/databaseOperation.js"></script>
	<script src="../../script/attachmentManager.js"></script>
	<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/copyTool.js"></script>
	<script type="text/javascript">
		var reportParam;
		var Weightratio;
		var repid = '';
		var stuid = '';
		var name = '';
		DBReady = function() {
			
			var reportParam = api.pageParam;
			repid = reportParam.repid;
			name = reportParam.rename1;
			var sxtypes = reportParam.sxtypes;
			//0：顶岗，1：认知，2:跟岗
			if (sxtypes == 0) {
				$('#dgsxqy').show();
				$('#dgsxm').show();
				$('#dgsxls').show();
				//跟岗实习
			} else if (sxtypes == 2) {
				$('#ggsxqy').show();
				//				$('#ggsxls').show();
			}
			setupDownloadAttNotifi();
			loadData(repid);
			SendBehaviorTrajectoriesNotifi1('0', '老师端实习报告列表详情', '111', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			blockAddCopyClickWithIdArr(["jygxtext","qypytext"]);
		}
		function loadData(repid) {
			var param = {
				id : repid, //reportParam.id,
				jid : $api.getStorage('cfnetppjid')
			};
			cfnetppPOST(urlReport, param, true, function(data, status) {
//								alert(JSON.stringify(data));
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						var xszpArr = list.xszp;
						var lspjArr = list.lspj;
						var qypfArr = list.qypf;
						//						var name = xszpArr.rename1;
						var urldata = xszpArr.urldata;
						if (urldata != null && urldata != '') {
							$('#attachment_div').show();
						}
						var arr = new Array();
						for (var i = 0; i < urldata.length; i++) {
							var monthData = urldata[i];
							var data = {
								id : monthData.id,
								url : monthData.enclosureurl,
								size : monthData.enclosuresize,
								name : monthData.enclosurename,
							};
							arr.push(data);
						}
						saveAttDatasToDb(arr, '');
						$('#page').text(name + "的实习报告");
						//  学生自评
						stuid = xszpArr.uid;
						var comments = xszpArr.comments;
						var sfyyjy = xszpArr.sfyyjy;
						var sxtd = parseInt(xszpArr.sxtd) / 5;
						var cql = parseInt(xszpArr.cql) / 5;
						var gzwcd = parseInt(xszpArr.gzwcd) / 5;
						var jnzwd = parseInt(xszpArr.jnzwd) / 5;
						if (Base64.decode(comments) == null) {
							$('#jygxtext').text("暂无评价,请耐心等候");
						} else {
							$('#jygxtext').text(Base64.decode(comments));
						}
						if (sfyyjy == 1) {
							$("input[value='1']").attr("checked", "true")
							$('#rd0').attr("disabled", "false")
						} else {
							$("input[value='0']").attr("checked", "true")
							$('#rd1').attr("disabled", "false")
						}
						//  教师评分
						var tcomment = lspjArr.tcomment;
						var tsxtd = parseInt(lspjArr.tsxtd) / 5;
						var tcql = parseInt(lspjArr.tcql) / 5;
						var tgzwcd = parseInt(lspjArr.tgzwcd) / 5;
						var tjnzwd = parseInt(lspjArr.tjnzwd) / 5;
						if (Base64.decode(tcomment) == null) {
							$('#lspytext').text("暂无评价,请耐心等候");
						} else {
							$('#lspytext').text(Base64.decode(tcomment));
						}
						/*
						 //  企业评分
						 //
						 */
						var qcomment = qypfArr.qcomment;
						var qsxtd = parseInt(qypfArr.qsxtd) / 5;
						var qcql = parseInt(qypfArr.qcql) / 5;
						var qgzwcd = parseInt(qypfArr.qgzwcd) / 5;
						var qjnzwd = parseInt(qypfArr.qjnzwd) / 5;
						if (Base64.decode(qcomment) == null) {
							$('#qypytext').text("暂无评价,请耐心等候");
						} else {
							$('#qypytext').text(Base64.decode(qcomment));
						}
						if (qsxtd > 0 & qcql > 0 & qjnzwd > 0 & qgzwcd > 0) {
							$('#bt_pf').show();
						} else {
							setTimeout(function() {
								api.toast({
									msg : '企业还未评价,你还不能评价学生的月报',
									duration : 2000,
									location : 'bottom'
								});
							}, 1000);
							$('#bt_pf').hide();
							var SumScore = parseInt(lspjArr.overnum);
							if (SumScore >= 90 && SumScore <= 100) {
								$("#img_youxiu").show();
							} else if (SumScore >= 70 && SumScore <= 89) {
								$("#img_lianghao").show();
							} else if (SumScore >= 60 && SumScore <= 69) {
								$("#img_jige").show();
							} else {
								$("#img_bujige").show();
							}
						}
						$("#taiduNum img").eq(sxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#chuqinNum img").eq(cql).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#workendNum img").eq(gzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#jinengNum img").eq(jnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#taiduNum1 img").eq(tsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#chuqinNum1 img").eq(tcql).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#gzwcdNum1 img").eq(tgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#jnzwdNum1 img").eq(tjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#taiduNum2 img").eq(qsxtd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#chuqinNum2 img").eq(qcql).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#gzwcdNum2 img").eq(qjnzwd).prevAll().attr("src", "../../image/icon_xingxing.png")
						$("#jnzwdNum2 img").eq(qgzwcd).prevAll().attr("src", "../../image/icon_xingxing.png")
					}
				}
			});
		}


		$('#bt_pf').click(function() {
			SendBehaviorTrajectoriesNotifi1('1', '老师端实习报告列表详情', '111', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			api.openWin({useWKWebView:true,
				name : 'Teacher_Endscore',
				url : 'Teacher_Endscore.html',
				allowEdit : true,
				pageParam : {
				    studentname:api.pageParam.rename1,
					id : repid,
					stuid : stuid,
					sourceurl : window.location.pathname,
					sourcetitle : document.title
				}
			});
		});
		//		发送刷新周报已审核通知
		function backClick() {
			SendBehaviorTrajectoriesNotifi1('1', '老师端实习报告列表详情', '111', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			api.closeWin();
		}
	</script>
</html>
